"SyntaxError:调用'print‘时缺少括号。您的意思是打印(’查找‘,f)?“安装ssl时

您所在的位置:网站首页 ssl error是什么意思 "SyntaxError:调用'print‘时缺少括号。您的意思是打印(’查找‘,f)?“安装ssl时

"SyntaxError:调用'print‘时缺少括号。您的意思是打印(’查找‘,f)?“安装ssl时

2023-03-21 12:31| 来源: 网络整理| 查看: 265

在运行python3 -m pip安装ssl时会出现此错误。我用的是丙酮3.9。我不知道我是不是错过了依赖什么的。有人知道这意味着什么吗?谢谢!

Collecting ssl Using cached ssl-1.16.tar.gz (33 kB) Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ksq1z266/ssl_4f2df792062c4e55adcde77572817d76/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ksq1z266/ssl_4f2df792062c4e55adcde77572817d76/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8pykq_q9 cwd: /tmp/pip-install-ksq1z266/ssl_4f2df792062c4e55adcde77572817d76/ Complete output (6 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-ksq1z266/ssl_4f2df792062c4e55adcde77572817d76/setup.py", line 33 print 'looking for', f ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('looking for', f)? ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/83/21/f469c9923235f8c36d5fd5334ed11e2681abad7e0032c5aba964dcaf9bbb/ssl-1.16.tar.gz#sha256=ac21156fee6aee9eb8d765bbb16f5f49492d81ff4b22f7b8fc001d2251120930 (from https://pypi.org/simple/ssl/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached ssl-1.15.tar.gz (32 kB) Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ksq1z266/ssl_937ea02f984c47d09515df3b015f1d75/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ksq1z266/ssl_937ea02f984c47d09515df3b015f1d75/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bhjdvuy4 cwd: /tmp/pip-install-ksq1z266/ssl_937ea02f984c47d09515df3b015f1d75/ Complete output (6 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-ksq1z266/ssl_937ea02f984c47d09515df3b015f1d75/setup.py", line 74 print 'looking for', f ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('looking for', f)? ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/3a/c2/846a19d1572ec6cb8ac438d58a898de8926d32e13f0355cdf4ab00864b5f/ssl-1.15.tar.gz#sha256=1266302ce62c4b60c7ca0e1d3d104ba11d2749e5881d8ac4f006cf9a0446d589 (from https://pypi.org/simple/ssl/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement ssl (from versions: 1.15, 1.16) ERROR: No matching distribution found for ssl


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3